package jam.model;
import java.util.*;
import java.util.Scanner;
/**
 * Class to represent any user.
 * Stores their name, email, avatar and display name.
 */

public class User {
    
    private String firstName;
    private String secondName;
    private String email;
    private String avatar;
    //private String displayName;
    private String status;
    private ArrayList<User> contacts = new ArrayList<User>();


    //another constructor made up of the individual user instance variables
    public User(String fName, String lName, String email, String avatar, /*String dName,*/ String status){
	firstName = fName;
	secondName = lName;
	this.email = email;
	this.avatar = avatar;
	//displayName  = dName;
	this.status = status;
    }
 
    //getter and setter methods
    public String getFName(){
	return firstName;
    }

    public String getSName(){
	return secondName;
    }

    public String getDName(){
		return email; //quick fix//
	}

    public String getStatus(){
	return status;
    }

    public ArrayList<User> getContacts(){
	return contacts;
    }

    public String  getAvatar(){
	return avatar;
    }

    public void addContact(User contact){
	contacts.add(contact);
    }

    public void removeContact(User contact){
	contacts.remove(contact);
    }

    public void setStatus(String s){

	status = s;
    }

    public void setAvatar(String avatar){
	this.avatar = avatar;
    }
}